/***********************************************************
 * CCmdBase.h
 ***********************************************************/
#pragma once

class CCmdBase
{
public:
    void   line_print_dbg( char *aFmts, ... );

public: /* virtual operator */
    virtual void   init();
    virtual void   release();
    virtual void * parse( char * aCommandStr );
    virtual int    event()=0;

public:
    CCmdBase();
    virtual ~CCmdBase();
   
    cmd_type   getCmdType();
    void       setCmdType( cmd_type aType );
    event_type getEventType();
    void       setEventType( event_type aType );

public: // variable
    char   mPrivilege[32];
    char   mChannel[32];
private:
    cmd_type    mCmdtype;
    event_type	mEventtype;
};
////////////////////////////////////////////////////////
